package com.wx.gof.pattern.structural.flyweight;

import lombok.Data;

/**
 * @ClassName Manager
 * @Author wx
 * @Description 员工
 * @Date 2018-12-08-23:38
 */
@Data
public class Manager implements Employee{
    /**
     * 标题 - 内部状态
     */
    private String title = "年前工作报告";
    /**
     * 部门 - 外部状态
     */
    private String department;
    /**
     * 报告内容
     */
    private String reportContent;

    public Manager(String department) {
        this.department = department;
    }

    @Override
    public void report() {
        System.out.println(this.reportContent);
    }
}
